<template>
  <div class="square">
    <h2 @click="logout">广场</h2>
    <div class="main">
      <div class="item">
        <img src="./home/photos/ad.png" alt="" />
        <p>于晏</p>
        <span>上午9：00</span>
        <i class="fa fa-star"></i>
        <p class="desc">
          只是当时忙着堕落想起时已是很久以后物是人非平添积分忧愁也许人生就是这样的不断的遇见又不断的错过如一个转身如早晨的一缕阳光傍晚的一抹晚霞也许会有遗憾但终究回忆满满作者：星辰梦羽
        </p>
      </div>
      <div class="items">
        <span>153条评论</span>
        <img src="./home/photos/da.png" alt="" />
        <p>彦祖</p>
        <i class="fa fa-heart"></i>
        <a>x999</a>
        <p class="desc-a">
          只是当时忙着堕落想起时已是很久以后物是人非平添积分忧愁也许人生就是这样的不断的遇见又不断的错过如一个转身如早晨的一缕阳光傍晚的一抹晚霞也许会有遗憾但终究回忆满满作者：星辰梦羽
        </p>
        <div class="potion">
          <img src="./home/photos/da.png" alt="" />
          <p>彦祖</p>
          <span>作者</span>
          <p class="select">
            不断的错入一个转身如早晨的一缕阳光傍晚的一抹晚霞也许会有遗憾但终究回忆满
          </p>
        </div>
        <div>
          <van-dropdown-menu>
            <van-dropdown-item v-model="value" :options="option" />
          </van-dropdown-menu>
        </div>
      </div>
    </div>

    <div class="footer">
      <input @click="keep" type="text" placeholder="  单行输入" />

      <van-icon style="margin: 0 3px; font-size: 26px" name="good-job-o" />
      X66<van-icon
        name="more-o"
        @click="point"
        style="margin: 0 3px; font-size: 26px"
      />
      X66
      <i class="fa fa-heart"> </i>X66
      <van-cell v-show="false" @touchstart.native.stop>弹出默认键盘</van-cell>
      <van-number-keyboard
        :show="show"
        @blur="show = false"
        @input="onInput"
        @delete="onDelete"
      />
    </div>
  </div>
</template>

<script>
import { Toast } from "vant";

export default {
  data() {
    return {
      value: 0,
      show: false,
      flag: false,
      switch1: false,
      switch2: false,
      option: [
        { text: "选项1", value: 0 },
        { text: "选项2", value: 1 },
        { text: "选项3", value: 2 },
      ],
    };
  },
  methods: {
    onConfirm() {
      this.$refs.item.toggle();
    },
    onInput(value) {
      Toast(value);
    },
    onDelete() {
      Toast("删除");
    },
    keep() {
      this.show = true;
    },
    point() {
      this.show = true;
    },
    logout() {
      this.$router.go(-1);
    },
  },
};
</script>
<style>
.square h2 {
  margin: 10px 56px;
  height: 100%;
  width: 120px;
  font-size: 28px;
}

.item {
  display: flex;
  flex-direction: column;
  /* align-items: center;
  justify-content: center; */
  width: 96%;
  height: 520px;
  background-color: gainsboro;
  border-radius: 40px;
  margin: 0 auto;
}
.item img {
  display: flex;
  width: 80px;
  height: 80px;
  margin: 40px 20px;
  /* background-color: #fff; */
  border-radius: 50%;
}
.item p {
  margin: 0 110px;
  margin-top: -120px;
  font-size: 28px;
}
.item span {
  margin: 0 110px;
  font-size: 28px;
}
.item i {
  margin: 0 640px;
  font-size: 52px;
  margin-top: -86px;
}
.item .desc {
  margin: 60px 90px;
  height: 54px;
  line-height: 54px;
}
.items {
  display: flex;
  flex-direction: column;
  width: 90%;
  height: 830px;
  background-color: gainsboro;
  border-radius: 40px;
  margin: 40px auto;
}
.items span {
  margin: 30px 34px;
  font-size: 24px;
}
.items img {
  display: flex;
  width: 135px;
  height: 135px;
  border-radius: 50%;
  margin: 0 1px;
  margin-top: -20px;
}

.items p {
  margin: 0 110px;
  font-size: 28px;
  margin-top: -93px;
}
.items i {
  display: flex;
  margin: 0 500px;
  font-size: 46px;
  margin-top: -36px;
}
.items a {
  margin: 0 562px;
  margin-top: -44px;
  font-size: 28px;
}
.items .desc-a {
  margin: 40px 110px;
  height: 48px;
  line-height: 48px;
}

.items .potion img {
  width: 80px;
  height: 80px;
  margin: 205px 103px;
}
.items .potion p {
  margin: 0 170px;
  margin-top: -262px;
  font-size: 28px;
}
.items .potion span {
  display: block;
  padding-top: 4px;
  width: 120px;
  height: 36px;
  font-size: 28px;
  border-radius: 10%;
  text-align: center;
  background: #fff;
  margin: 0 270px;
  margin-top: -38px;
}
.items .potion .select {
  margin: 20px 200px;
  height: 46px;
  line-height: 46px;
}

.footer {
  width: 100%;
  height: 120px;
  display: flex;
  align-items: center;
  border-top: 2px solid grey;
  /* background-color: grey; */
}
.footer input {
  width: 50%;
  height: 60px;
  margin: 24px 24px;
  padding: 4px 4px;
  /* border: 2px solid grey; */
}
.footer i {
  margin: 0 10px;
  font-size: 36px;
}
.van-dropdown-menu .van-dropdown-menu__bar {
  width: 25%;
  height: 60px;
  margin: 133px 232px;
}
</style>
